<template>
  <div>
    <!-- views/studentindex.vue -->
    <!-- 放置水平导航 -->
    <index-header></index-header>
    <!-- header上  aside左 main右 footer下 -->
    <el-container>
      <el-container>
        <el-aside class="maside" width="200px">
          <!-- 放置垂直导航 -->
          <el-menu
            :default-active="$route.path"
            background-color="#303133"
            text-color="#fff"
            active-text-color="#ffd04b"
            router
          >
            <el-menu-item index="/index/one">
              <i class="el-icon-s-home"></i>
              后台首页
            </el-menu-item>
            <el-menu-item index="/index/two">
              <i class="el-icon-location"></i>
              公司列表
            </el-menu-item>
            <el-menu-item index="/index/three">
              <i class="el-icon-s-grid"></i>
              用户列表
            </el-menu-item>
            <el-submenu index="/index">
              <template slot="title"
                ><i class="el-icon-location"></i> 首页信息管理</template
              >
              <el-menu-item-group>
                <el-menu-item index="/index/four">轮播图管理</el-menu-item>
                <el-menu-item index="/index/hot">热门推荐</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main class="mmain">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import IndexHeader from "@/components/IndexHeader.vue";
export default {
  components: { IndexHeader },
  mounted() {
    // console.log(this.$route.path);
  },
};
</script>

<style scoped src="../assets/css/studentindex.css">
</style>


